<?php
class Zfb_Acl_Role extends Zend_Acl_Role
{
	/**
     * Sets the Role identifier
     *
     * @param  stdClass $role db row
     * @return void
     */
    public function __construct($role)
    {
        parent::__construct($this->_getFullRoleName($role));
    }
    
	/**
	 * Generates full role name 
	 * ("id" by default)
	 * @param stdClass $role db row
	 * @return int
	 */
	protected function _getFullRoleName($role)
	{
		return $role->id;	
	}
}